using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Jasongozy.Alaton;
using System.Xml;
namespace Jasongozy.Alaton.Test.UnitTest {
    [TestFixture]
    public class XmlTooltest {
        [Test]
        public void XmlGetValueTest() {
            string xmlstring = "<item><id>1</id><id>2</id><ids>3</ids></item>";
            XmlDocument doc = new XmlDocument ();
            doc.LoadXml(xmlstring);
            string res = XmlTool.GetValue(doc, "item/id");
            res = XmlTool.GetValue(doc, "item/ids");
            Assert.AreEqual("3", res);
        }
    }
}
